/**
 * @description 页面路由
 * @author wangxin
 * @date 2020-6-1
 * @version 1.0
 */
import { Router, POWERS } from "_/schema";
import settings from "@/settings";
const PAGE_HOME = "home";
// 合并默认参数
settings.merge({ route: { index: PAGE_HOME } });
export default [
  new Router("global-home", 'global-home').path('/').redirect('/index')
    .append(
      new Router(PAGE_HOME, 'planar-home', '首页').sort(0)
        .path('index').powers([POWERS.BROWSER])
        .component(() => import(/* webpackChunkName: "views" */'../pages/home/index.vue'))
    )
    .build(),
  new Router('error_404', 'error-404').path('*').hideInMenu().sort(10000)
    .component(() => import(/* webpackChunkName: "views" */'../pages/error/404.vue'))
    .build()
]
